package com.example.flutter_pangle;

import android.app.Activity;
import android.content.Context;

import androidx.annotation.NonNull;

import java.util.Map;

import io.flutter.plugin.common.MessageCodec;
import io.flutter.plugin.common.StandardMessageCodec;
import io.flutter.plugin.platform.PlatformView;
import io.flutter.plugin.platform.PlatformViewFactory;
import io.flutter.plugin.common.BinaryMessenger;

public class DetailFragmentFactory extends PlatformViewFactory {
  private final DetailFragmentPlatformView.ActivityProvider activityProvider;
  private final BinaryMessenger messenger;

  public DetailFragmentFactory(BinaryMessenger messenger, DetailFragmentPlatformView.ActivityProvider activityProvider) {
    super(StandardMessageCodec.INSTANCE);
    this.activityProvider = activityProvider;
    this.messenger = messenger;
  }

  @NonNull
  @Override
  public PlatformView create(@NonNull Context context, int viewId, Object args) {
    return new DetailFragmentPlatformView(context, viewId, args, activityProvider, messenger);
  }
}


